CheckpointStringNotExists

Verifies that a substring does not exist in a text string. If the substring is found, the script fails and displays a message in the Errors pane.

This statement can be used to verify data returned from the WebGet and WebPost statements in load test scripts.

Syntax

CheckpointStringNotExists("TextToSearch", "TextToSearchFor")

Arguments

Argument Description
TextToSearch String to search in.
TextToSearchFor Substring to search for in the TextToSearch string. The search is case sensitive.

Example

result = WebGet("/loginpage.php", "user", "Guest")

CheckpointStringNotExists(result, "Server error")